<?php

use yii\db\Migration;
use yii\db\Schema;

class m170808_082257_ADD_COLUMN_CUSTOMER_NATIVE_PRE extends Migration
{
    public function up()
    {
         $this->addColumn('{{order_customer}}', 'card', Schema::TYPE_STRING. "(18) null COMMENT '身份证号码' ");
         $this->addColumn('{{order_customer}}', 'card_address', Schema::TYPE_STRING. "(64) null COMMENT '身份证签发地' ");
         $this->addColumn('{{order_customer}}', 'card_img', Schema::TYPE_STRING. "(255) null COMMENT '身份证或户口照片' ");
         $this->addColumn('{{order_customer}}', 'nation', Schema::TYPE_STRING. "(32) null COMMENT '民族' ");
    }

    public function down()
    {
        echo "m170808_082257_ADD_COLUMN_CUSTOMER_NATIVE_PRE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
